package com.zpark.spring_02_ioc.pojo;

import org.springframework.beans.factory.DisposableBean;
import org.springframework.beans.factory.InitializingBean;

/**
 * @PackageName: com.zpark.spring_02_ioc.pojo
 * @ClassName: Empty
 * @Description:
 * @author: RZS
 * @date: 2023/3/23  16:48
 */
public class Empty implements InitializingBean, DisposableBean {
    @Override
    public void destroy() throws Exception {
        System.out.println("empty--------------初始化方法");
    }

    @Override
    public void afterPropertiesSet() throws Exception {
        System.out.println("empty--------------销毁方法");
    }
}
